package edu.uestc.wsn;

import java.io.Serializable;

public class LocRss implements Serializable {
    /**
     * 該點名稱
     */
    private String name;
    private int x;
    private int y;
    /**
     * RSS值
     */
    private double rss;

    /**
     * @param name name of the point
     * @param x    horizontal axis of the point
     * @param y    vertical axis of the point
     */
    public LocRss(String name, int x, int y) {
        this.name = name;
        this.x = x;
        this.y = y;
    }

    /**
     * @see LocRss#LocRss(String, int, int)
     */
    public LocRss(String name, Double x, Double y) {
        this(name, x.intValue(), y.intValue());
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public void setX(Double x) {
        this.x = x.intValue();
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public void setY(Double y) {
        this.y = y.intValue();
    }

    public Double getRss() {
        return rss;
    }

    public void setRss(double rss) {
        this.rss = rss;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


}
